//
// Created by zhuyijun on 2021/8/17.
//

#ifndef BASE_STACK_H
#define BASE_STACK_H

typedef unsigned long Item;

class Stack {
private:
    enum {MAX=10};
    Item items[MAX];
    int top;
public:
    //构造函数
    Stack();
    //判断栈是否为空
    bool isempty() const;
    //判断栈是否满了
    bool isfull() const;
    //入栈
    bool push(const Item & item);
    //出栈
    bool pop(Item & item);
};


#endif //BASE_STACK_H
